<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:80:"/data/www/sfadmin/public/../application/admin/view/auth_group/set_user_page.html";i:1488527668;s:76:"/data/www/sfadmin/public/../application/admin/view/template/base_iframe.html";i:1488527668;}*/ ?>
<head>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="__LIB__/Hui-iconfont/1.0.7/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/app.css"/>
    
    <link href="//cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>



    <div class="pd-5">
        <form action="<?php echo url('/admin/auth_group/set_user'); ?>" class="form-inline" role="form" id="search-form">
            <input type="hidden" name="id" value="<?php echo $id; ?>">
            <input name="username" value="<?php echo $username; ?>" type="text" class="form-control"  placeholder="用户名称">
            <button type="submit" class="btn btn-info">搜索  </button>
            <button type="reset" class="btn btn-default btn-reset">重置  </button>

        </form>
    </div>
    <div class="pd-5">
        <form id="set" >
            <input type="hidden" name="id" value="<?php echo $id; ?>">

            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <thead>
                    <tr class="text-c">
                        <th width="10%">
                            <input type="checkbox" id="checkbox-1" class="select-all">
                            <label for="checkbox-1">全选</label>
                        </th>
                        <th>帐号</th>
                        <th>登录次数</th>
                        <th>状态</th>
                        <th>最后登录时间</th>
                    </tr>
                </thead>
                <?php if(is_array($info) || $info instanceof \think\Collection): $i = 0; $__LIST__ = $info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                    <tbody>
                        <tr class="text-c">
                            <td class="text-c" width="5%"><input type="checkbox" name="user_id[]" class="index-chkbox" value="<?php echo $v['id']; ?>" <?php if(in_array($v['id'],$is_user)): ?>checked<?php endif; ?>/></td>
                            <td><?php echo $v['username']; ?></td>
                            <td><?php echo $v['login_count']; ?></td>
                            <td><?php echo !empty($v['status'])?'<span class="label label-success radius">启用</span>' : '<span class="label label-danger radius">禁用</span>'; ?></td>
                            <td><?php echo date("y-m-d H:i:s",$v['last_login_time']); ?></td>
                        </tr>
                    </tbody>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </table>

            <div class="ml-10">
                <?php echo $info->render(); ?>
            </div>

        </form>
    </div>



<script type="text/javascript">
    var PUBLIC = '__PUBLIC__';
    var REQUIRE__JS = '__REQUIRE__JS__';
</script>
<!--require Js -->
<script src="__REQUIRE__JS__/require.config.js"></script>
<script src="__REQUIRE__JS__/require.js"></script>
<script src="__PUBLIC__/common/js/functions.js"></script>

	<script type="text/javascript" src="__AJS__/auth_group/set_user_page.js"></script>

</body>
